<!DOCTYPE html>
<html lang="ru" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" name="viewport">
    <title>MeteoService</title>
    <link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
    <div class="container">
        <span class="navbar-brand mb-0 h1">
            <img src="/assets/logo.png" width="30" height="30" class="d-inline-block align-top" alt="">
            <a href="/" style="color: white">MeteoService</a>
        </span>
        <a class="navbar-text" href="https://github.com/funcid/MeteoService" target="_blank">
            <img src="/assets/github.svg" width="24" height="24" class="d-inline-block align-top"
                 alt="GitHub repository">
            Source code
        </a>
    </div>
</nav>

<br class="container">
<center>
    <div th:unless="${#lists.isEmpty(sensor)}" align="left" style="width: 25%;">
        <b>
            Показатели датчика с ID
            <span th:text="${id}">
                [ID]
            </span>
            :
        </b>
        <li>Время получения:
            <b th:text="${sensor.timestamp}">
                [SENSOR_TIMESTAMP]
            </b>
        </li>
        <li>Локация:
            <b th:text="${sensor.location}">
                [SENSOR_LOCATION]
            </b>
        </li>
        <li>Температура:
            <b th:text="${sensor.temperature}">
                [SENSOR_TEMPERATURE]
            </b>
            C°
        </li>
        <li>Давление:
            <b th:text="${sensor.pressure}">
                [SENSOR_PRESSURE]
            </b>
            мм. р. с.
        </li>
        <li>Влажность:
            <b th:text="${sensor.humidity}">
                [SENSOR_HUMIDITY]
            </b>
            %
        </li>
    </div>
    <div th:if="${#lists.isEmpty(sensor)}">
        <b>
            Снимок датчика с ID <span th:text="${id}">[ID]</span> не найден.
        </b>
    </div>
    </br>
    <p>
        <a href="/">
            Вернуться
        </a>
    </p>
</center>
</div>
</body>
</html>